package com.hjx.movie.core.system.service.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjx.movie.core.system.vo.MenuTreeNode;
import com.hjx.movie.persistence.system.model.IvyMenu;

import java.util.List;

/**
 * <p>Title:</p>
 * <p>Description:</p>
 *
 * @author hjx
 * @date 2021/1/18 - 18:33
 */
public interface IMenuService extends IService<IvyMenu> {
    List<MenuTreeNode> selectMenuTree(Long rootMenuId, String apiNameLike, Boolean apiStatus);
    boolean addMenu(IvyMenu menu);
    boolean deleteMenu(Long menuId);
    boolean updateMenu(IvyMenu menu);
    List<Long> findMenuExpandedKeys();
    List<Long> findMenuCheckedKeys(Long roleId);
    List<MenuTreeNode> findLeftMenuAndTabs(String userId);

}
